﻿using System;
using System.Collections.Generic;
using System.Text;
using SD.Entities;
using SD.DataAccess;

namespace SD.Business
{
    public class ContactBusiness
    {
        //Creater:VietTT1
        //Desc: Insert .....
        //Date: 28-Mar-2013

        public bool AddContact2(ContactEntity contactEntity)
        {
            if (String.IsNullOrEmpty(contactEntity.FirstName) || String.IsNullOrEmpty(contactEntity.Surname)||contactEntity.ContactTypeCode == 0)
                return false;
            ContactAccess contactAccess = new ContactAccess();
            return contactAccess.AddContact2(contactEntity);
        }
    }
}
